package com.dnjn.happiness.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 模块功能对象 biz_advice_tags
 *
 * @author happiness
 * @date 2023-10-14
 */
@Schema(name = "AdviceTags", description = "模块功能")
@Accessors(chain = true)
@Getter
@Setter
@Data
@TableName("biz_advice_tags")
public class AdviceTags extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** PK */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "advice_tags_id", type = IdType.ASSIGN_ID)
    private Long adviceTagsId;

    
    

    /**  */
    @Schema(description = "")
    @Excel(name = "")
    private String label;



    /** 是否删除|0-否 1-是|valid */
    @Schema(description = "是否删除|0-否 1-是|valid")
    @Excel(name = "是否删除|0-否 1-是|valid")
    private String deleted;
    /**
     * 数据库里边没有该字段
     */
    @TableField(exist = false)
    List<Long> userIds;

    @TableField(exist = false)
    private Long userId;
//    @TableField(exist = false)
//    private String userName;

    @Schema(description = "用户信息")
    @TableField(exist = false)
    private List<AdviceUserTag> userTagList;

    @TableField(exist = false)
    private String usernames;

    @TableField(exist = false)
    private Long deptId;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("adviceTagsId", getAdviceTagsId())
                .append("label", getLabel())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .append("version", getVersion())
                .toString();
    }
}
